package com.ctvit.cch.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctvit.cch.core.mapper.CreativeShotFrameMapper;
import com.ctvit.cch.core.pojo.domain.CreativeShotFrame;
import com.ctvit.cch.core.pojo.dto.creative.CreativeShotFrameEditDTO;
import com.ctvit.cch.core.service.ICreativeShotFrameService;

import java.util.Objects;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * 分镜设计Service业务层处理
 *
 * @author heyingcheng
 * @date 2025/11/06
 */
@Service
public class CreativeShotFrameServiceImpl extends ServiceImpl<CreativeShotFrameMapper, CreativeShotFrame> implements ICreativeShotFrameService {

    @Override
    public boolean edit(CreativeShotFrameEditDTO dto) {
        CreativeShotFrame entity = new CreativeShotFrame();
        BeanUtils.copyProperties(Objects.requireNonNull(dto), entity);
        return updateById(entity);
    }

}